from bs4 import BeautifulSoup

html = '''
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>
<body>
  <ul>
    <li>11111</li>
    <li>22222</li>
    <li>33333</li>
  </ul>
  <p>hello</p>
</body>
</html>
'''
soup = BeautifulSoup(html, 'lxml')
# 获取所有的li
lis = soup.find_all("li")
print(lis)

